/*
 * consolewrite_task.h
 *
 *  Created on: 2024年8月13日
 *      Author: nwz
 */

#ifndef CODE_TASK_CONSOLE_WRITE_TASK_H_
#define CODE_TASK_CONSOLE_WRITE_TASK_H_

#define LOG_D(...)	do{\
						console_write_task_write("[%08d][bootloader]",NOW()); \
						console_write_task_write(__VA_ARGS__);\
					}while(0)

#define LOG_SYNC(...)	console_write_task_sync_write(__VA_ARGS__)
#define PRINT(...)		console_write_task_write(__VA_ARGS__)

void console_write_task_init(void);

void console_write_task_run(void* arg);

void console_write_task_write(const char *fmt, ...);

void console_write_task_write2(uint8_t* buffer, uint32_t size);

void console_write_task_send_cmplt_callback(void *dma);

void console_write_task_sync_write(const uint8_t *fmt, ...);
#endif /* CODE_TASK_CONSOLEWRITE_TASK_H_ */
